import newAbyss from "../model/newAbyss.js"
import plugin from "../../../lib/plugins/plugin.js"

export class NewAbyssReport extends plugin {
  constructor() {
    super({
      name: "超弦空间",
      dsc: "崩坏3超弦空间",
      event: "message",
      priority: 100,
      rule: [{ reg: "^#*崩三?(深渊|超弦空间)$", fnc: "newAbyssReport" }],
    })
  }

  async newAbyssReport() {
    let data = await new newAbyss().getData(this.e)
    this.renderImg("BH3-Plugin", `html/newAbyss/newAbyss`, data)
  }
}
